<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="com.mvc.domain.User" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <center>
   	<c:forEach items="${userlist}"  var="user">	
	<table width="600" border="1" bordercolor="000000"
		style="table-layout: fixed; word-break: break-all">
		<tr>
			<td width="100" bordercolor="ffffff">
				编号:
			</td>
			<td width="500" bordercolor="ffffff"><c:out value="${user.id}"/></td>
		</tr>
		<tr>
			<td bordercolor="ffffff">
				姓名:
			</td>
			<td bordercolor="ffffff"><c:out value="${user.username}"/></td>
		</tr>
		<tr>
			<td bordercolor="ffffff">
				性别:
			</td>
			<td bordercolor="ffffff"><c:out value="${user.sex}" /></td>
		
		</tr>
		<tr>
			<td bordercolor="ffffff">
				password:
			</td>
			<td bordercolor="ffffff"><c:out value="${user.password}" default="没填" /></td>
		</tr>
	</table>
	<br>
	</c:forEach>	
</center>
  </body>
</html>
